#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QCameraInfo>
#include <QList>
#include <QCamera>
#include <QCameraImageCapture>
#include <QCameraViewfinder>
#include <QCameraViewfinderSettings>
#include <QFile>
#include <QDir>
#include <QImage>
#include <QPicture>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QCamera *myCamera;
    QCameraViewfinder *CameraView;
    QCameraImageCapture *cameraImagecapture;
    QCameraViewfinderSettings viewfinderSettings;
    void on_capture(int id, const QImage &preview);
private slots:
    void on_screenshot_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
